package com.nb.provider.auth;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author lihaoyang6
 * @Date 2023-08-02 15:57
 **/
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Autowired
    private SignVerifyInterceptor signVerifyInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        /*****************/
        registry.addInterceptor(signVerifyInterceptor);
    }
}
